import {Module} from "@nestjs/common";
import {AppController} from './app.controller'
import {APP_INTERCEPTOR} from '@nestjs/core'
import {LoggerInterceptorProvider} from './interceptors/logger.interceptor'

@Module({
    controllers: [
        AppController
    ],
    providers: [
        {
            provide: APP_INTERCEPTOR,
            useClass: LoggerInterceptorProvider
        }
    ]
})
export class AppModule {

}
